package com.yang.flower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description: 订单表
 * @Author: Yang
 * @DateTime: 2022/12/7 9:41
 **/
@Data
@TableName("orders")
public class Orders {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String orderCode;

    private String status;

    private Long userId;

    private String address;

    private String orderTime;

    private String checkoutTime;

    private BigDecimal totalPrice;

    private String remark;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private List<Cart> carts;

}
